package com.example.mybaseapp.ui.glide

import androidx.lifecycle.lifecycleScope
import com.bumptech.glide.Glide
import com.example.lib_base.BaseActivity
import com.example.mybaseapp.databinding.ActivityGlideTestBinding
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.MainScope

class GlideTestActivity : BaseActivity<ActivityGlideTestBinding>() {
    private val picUrl = "https://img1.baidu.com/it/u=3190882800,4142965122&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=747"

    override fun onViewInit() {
        Glide.with(this)
            .load(picUrl)
            .into(binding.img)

    }
}